<?php
include_once '../Class/DB.php';
$db=new DB();
$tid=$_GET["id"];
$pName=$_GET["newParentName"];
$theType=$db->get_tid_types($tid);
$parent=$db->get_name_tid($pName, "b");
$db->update_tid_parent($tid,$parent);
?>
<script language="JavaScript">
window.location.href="classifyList.php";
</script>